package com.tvunetworks.center.user.model;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Table;

/**
 * @program: tvucc-aggregator
 * @description: UserInstance
 * @author lebronchen
 * @create: 2020-04-23 13:30
 **/
@Data
@Accessors(chain = true)
@Table(name = "tvu_cc_user_instance")
public class UserInstance extends BaseBean {
    /**
     * STATUS_RUNNING
     */
    public static final int STATUS_RUNNING = 1;
    /**
     * STATUS_CLOSED_BY_USER
     */
    public static final int STATUS_CLOSED_BY_USER = 2;
    /**
     * STATUS_CLOSED_BY_SYSTEM
     */
    public static final int STATUS_CLOSED_BY_SYSTEM = 3;
    /**
     * TYPE_SUPPORT_CLOUD_R
     */
    public static final int TYPE_SUPPORT_CLOUD_R = 1;
    /**
     * STEP_PEERID_NOT_BIND_INSTANCE
     */
    public static final  int STEP_PEERID_NOT_BIND_INSTANCE = 1;
    /**
     * STEP_PEERID_BIND_INSTANCE_SUCCESS
     */
    public static final  int STEP_PEERID_BIND_INSTANCE_SUCCESS = 2;
    /**
     * STEP_RELEASE_PEERID_FAILED
     */
    public static final  int STEP_RELEASE_PEERID_FAILED = 3;
    /**
     * STEP_RELEASE_PEERID_SUCCESS
     */
    public static final  int STEP_RELEASE_PEERID_SUCCESS = 4;

    private String userId;
    private String instanceId;
    private String region;
    private String publicIp;
    private String privateIp;
    // 机器状态，开机/关机
    private Integer status;
    // 机器类型 CloudR
    private Integer type;
    // 流程进度
    private Integer tpcBindStep;

    private String shutdownUserId;
    private Long shutdownTime;

    private String imageType;

    private String remark;
    private Long scheduleShutdownTime;
}
